package com.fitzone.web.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fitzone.model.entity.Vip;
import com.fitzone.web.mapper.VipMapper;
import com.fitzone.web.service.VipService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VipServiceImpl extends ServiceImpl<VipMapper, Vip> implements VipService {
    @Autowired
    private VipMapper vipMapper;
    @Override
    public List<Vip> getVipList() {
        LambdaQueryWrapper<Vip> queryWrapper = new LambdaQueryWrapper<>();
        List<Vip> vips = vipMapper.selectList(queryWrapper);
        return vips;
    }
}
